package com.inboyu.operation.domain;

/**
 * 证件类型
 * @param code
 * @param name
 */
public record CertificateType(String code, String name) {

    public static final CertificateType ID_CARD = new CertificateType("ID_CARD", "居民身份证");
    public static void check(CertificateType certificateType) {
        if (certificateType == null) {
            throw new IllegalArgumentException("certificateType is null");
        }
    }
}
